package com.md.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.md.utils.Entity;
import lombok.Data;


import java.util.Date;

@Data
public class Student extends Entity {
    /**
     *
     */
    private String addr;
    /**
     *
     */
    private String gender;
    /**
     *
     */
    private Date birthday;
    /**
     *
     */
    private String cardNo;
    /**
     *
     */
    private Integer clazzId;
    /**
     *
     */
    private Integer id;
    /**
     * 注意日期格式的处理
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date joinDate;
    /**
     *
     */
    private String phone;
    /**
     *
     */
    private String pname;
    /**
     *
     */
    private String status;
    /**
     *
     */
    private String stuName;
    /**
     *
     */
    private String stuNo;
    /**
     *
     */
    private String stuPwd;
    /**
     *
     */
    private Integer subjectId;
    /**
     *
     */
    private String telephone;

    /**
     * 专业
     */
    private Subject subject;
    /**
     * 班级
     */
    private Clazz clazz;


    public String getAddr() {
        return addr;
    }
    public void setAddr(String addr) {
        this.addr = addr;
    }
    public Date getBirthday() {
        return birthday;
    }
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
    public String getCardNo() {
        return cardNo;
    }
    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }
    public Integer getClazzId() {
        return clazzId;
    }
    public void setClazzId(Integer clazzId) {
        this.clazzId = clazzId;
    }
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public Date getJoinDate() {
        return joinDate;
    }
    public void setJoinDate(Date joinDate) {
        this.joinDate = joinDate;
    }
    public String getPhone() {
        return phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getPname() {
        return pname;
    }
    public void setPname(String pname) {
        this.pname = pname;
    }
    public String getStatus() {
        return status;
    }
    public void setStatus(String status) {
        this.status = status;
    }
    public String getStuName() {
        return stuName;
    }
    public void setStuName(String stuName) {
        this.stuName = stuName;
    }
    public String getStuNo() {
        return stuNo;
    }
    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }
    public String getStuPwd() {
        return stuPwd;
    }
    public void setStuPwd(String stuPwd) {
        this.stuPwd = stuPwd;
    }
    public Integer getSubjectId() {
        return subjectId;
    }
    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }
    public String getTelephone() {
        return telephone;
    }
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Subject getSubject() {
        return subject;
    }

    public void setSubject(Subject subject) {
        this.subject = subject;
    }

    public Clazz getClazz() {
        return clazz;
    }

    public void setClazz(Clazz clazz) {
        this.clazz = clazz;
    }

    public static class StatusType{
        public static String type_1 = "正常";
        public static String type_2 = "辍学";
        public static String type_3 = "休学";
        public static String type_4 = "复学";
        public static String type_5 = "转学";
        public static String type_6 = "转入";
        public static String type_7 = "毕业";
    }
}
